package comm;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;

public class LOG {
	private PrintStream out;

	public LOG(String filename) {
		try {
			out = new PrintStream(new FileOutputStream(new File(filename), true));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
			System.exit(0);
		}
	}

	public void info(Object msg) {
		out.println(msg);
		out.flush();
	}

}
